/**
 * API统一入口文件
 * 导出所有API模块
 */
import http from '../utils/http.js'
import UserApi from './user.js'
import MarkingApi from './marking.js'
import ScoreApi from './score.js'
import LearningStatusApi from './learningStatus.js'
import CheckingLearningStatusApi from './checkLearningStatus.js'
import SubjectReportApi from './subjectReport.js'
import AnswerDetailsApi from './answerDetails.js'

// 将http实例也导出，方便直接使用
export { default as http } from '../utils/http.js'

// 导出各个模块的API
export { default as UserApi } from './user.js'
export { default as MarkingApi } from './marking.js'
export { default as ScoreApi } from './score.js'
export { default as LearningStatusApi } from './learningStatus.js'
export { default as CheckingLearningStatusApi } from './checkLearningStatus.js'
export { default as SubjectReportApi } from './subjectReport.js'
export { default as AnswerDetailsApi } from './answerDetails.js'

// 统一的API对象
const API = {
  // HTTP工具
  http,

  // 用户相关
  user: UserApi,

  // 阅卷相关
  marking: MarkingApi,

  // 成绩统计相关
  score: ScoreApi,
  learningStatus: LearningStatusApi,
  checkingLearningStatus: CheckingLearningStatusApi,
  subjectReport: SubjectReportApi,
  answerDetails: AnswerDetailsApi
}

export default API

